# Recipe mongo::repo
# 
#   Adds mongodb reposistory server
#

case node['platform_family']
  when 'rhel'
    template '/etc/yum.repos.d/mongodb.repo' do
      source 'repository.erb' 
      owner 'root'
      group 'root'
      mode '0644'
      action :create_if_missing
    end
  when 'debian'
    template '/etc/apt/sources.list.d/mongodb.list' do
      source 'source_list.erb'
      owner 'root'
      group 'root'
      mode '0644'
    end
end
